package com.hhang.boot.service;

import com.github.pagehelper.PageInfo;
import com.hhang.boot.exception.ServiceException;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public interface ComService {

    int addGoods(Map<String,Object> param) throws ServiceException;

    PageInfo<Map<String,Object>> findCom(Map<String,Object> param) throws ServiceException;

    int upGoods(Map<String, Object> param) throws ServiceException;

    int delGoods(List<Long> ids) throws ServiceException;
    //  宠物列表

    PageInfo<Map<String,Object>> findRepair(Map<String,Object> param) throws ServiceException;

    int addDuty(Map<String,Object> param) throws ServiceException;

    //  收养申请
    int addRepair(Map<String,Object> param) throws ServiceException;

    PageInfo<Map<String,Object>> findDuty(Map<String,Object> param) throws ServiceException;
    int delDuty(List<Long> ids) throws ServiceException;
    int upRepair(Map<String, Object> param) throws ServiceException;
}
